<template>
  <div class="poster">
      <div class="posterList" v-for="(temp,index) in 10" :key="index"  @click="show = true">
         <div class="posterImg">
           <img src="http://placehold.it/225x400" alt="">
         </div>
          <otherInfo></otherInfo>
      </div>
      <div class="layer" v-show="show" @click="show = false" >
       <posterLayer></posterLayer>
     </div>
  </div>
</template>

<style lang="less">
.poster{
    width: 100%;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    box-sizing: border-box;
    // padding: 10px 0;
    .posterList{
        width: 225px;
        height: 485px;
        overflow: hidden;
        margin: 15px 7px;
        background: #fff;
        box-shadow:0px 2px 25px 0px rgba(189,189,189,0.3);
        img{
            width: 100%;
        }
        .posterImg{
            width: 100%;
            height: 400px;
            background: #DADADA;
        }
    }
}
</style>

<script>
import otherInfo from "@/components/otherInfo"
import posterLayer from "@/components/posterLayer"
export default {
  components: {
    otherInfo,
    posterLayer
  },
  data() {
    return {
      show: false
    };
  }
};
</script>